from 计算方差 import var
import gradio as gr

def my_var(text):
    text = [float(i) for i in text.split(',')]
    print(tuple(text))
    return var(text)

demo = gr.Interface(
    fn=my_var,
    inputs="text",
    outputs="text",
)

demo.launch()